<?php if (!defined("BASEPATH")) exit("No direct script access allowed");

class Sitemapxml extends MY_Controller {

	function __construct() {
		parent::__construct();
	}

	function _remap() {
		$this->load->driver("cache");
		$params["content"] = $this->cache->file->get("getSitemapXmlContent");
		if(!($params["content"])) {
			$params = array();
			$params["title"] = $this->lang->line("SITEMAP");
			$params["breadcrumbs"] = array(
				site_url() => "Home",
				$this->lang->line("SITEMAP"),
			);
			$this->load->model("continent");
			$params["getContinentList"] = $this->continent->getContinentList($all = TRUE);
			$params["content"] = $this->load->view("page/sitemapxml", $params, TRUE);
			$this->cache->file->save("getSitemapContent", $params["content"], 60*60*24);
		}

		$this->load->view("template/empty", $params);
	}

}